﻿package ;

/**
 * ...
 * @author kex
 */

import flash.display.Sprite;
import gui.hug.LinkButton;
/*import flash.display.Shape;
import flash.display.DisplayObject;
import gui.hug.HUGButton;
import gui.hug.HUGLabel;
import flash.text.TextField;*/
import flash.events.MouseEvent;
import flash.display.Shape;


class HaxeTest extends Sprite {
	
	public function new() {
		super();
		flash.Lib.current.addChild(this);
		
		var button : MyButton = new MyButton(this);
		var list : MyList = new MyList(this, 480, 90, 260);
		addEventListener( MouseEvent.CLICK, onClick );
	}
	
	public function onClick( e : MouseEvent ) {
		var circle : Shape = new Shape();
		circle.graphics.beginFill( Std.int(Math.random() * 2000000000) , Math.random() + 0.3 );
		circle.graphics.drawCircle( e.localX , e.localY , Std.int(Math.random() * 59) + 10 );
		addChild( circle );
	}
}
